package org.dromara.demo.domain.bo;

import org.dromara.demo.domain.JsExample;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 测试用例业务对象 js_example
 *
 * @author zhu
 * @date 2024-12-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JsExample.class, reverseConvertGenerate = false)
public class JsExampleBo extends BaseEntity {

    /**
     * 用例id
     */
    @NotNull(message = "用例id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用例名称
     */
    @NotBlank(message = "用例名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 类型
     */
    private String type;

    /**
     * 用例脚本
     */
    @NotBlank(message = "用例脚本不能为空", groups = { AddGroup.class, EditGroup.class })
    private String elementId;

    /**
     * 设备号
     */
    private String deviceCode;

    /**
     * 备注
     */
    private String remark;
    /**
     * 分类
     */
    private String category;

}
